#include <iostream>
#include <vector>

using namespace std;

void test01() {
	vector<int> v1;
	vector<int> v2;
	vector<int> v3;
	vector<int> v4;
	vector<vector<int>> v;

	for (int i = 0; i < 4; i++) {
		v1.push_back(i);
		v2.push_back(i);
		v3.push_back(i);
		v4.push_back(i);
	}

	v.push_back(v1);
	v.push_back(v2);
	v.push_back(v3);
	v.push_back(v4);

	for (vector<vector<int>>::iterator pcur1 = v.begin(); pcur1 != v.end(); pcur1++) {
		for (vector<int>::iterator pcur2 = (*pcur1).begin(); pcur2 != (*pcur1).end(); pcur2++) {
			cout << *pcur2 << " ";
		}
		cout << endl;
	}
}

int main() {
	test01();
	return 0;
}